﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_DSJCJ.BLL
{
    /// <summary>
    /// 信息文档查看记录 逻辑类
    /// </summary>
    public class DocReadLog
    {
        /// <summary>
        /// 信息文档查看记录数据类
        /// </summary>
        private DAL.DocReadLog docReadLogDAL = new DAL.DocReadLog();
        /// <summary>
        /// 构造函数
        /// </summary>
        public DocReadLog()
        {
        }
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(Model.DocReadLog model)
        {
            docReadLogDAL.Add(model);
        }
        /// <summary>
        /// 是否已经存在阅读记录
        /// </summary>
        /// <param name="entityNo"></param>
        /// <param name="docId"></param>
        /// <param name="empNo"></param>
        /// <returns></returns>
        public bool Exists(string entityNo, decimal docId, string empNo)
        {
            return docReadLogDAL.Exists(entityNo, docId, empNo);
        }
    }
}
